﻿using AutoMapper;
using Microsoft.Extensions.Options;
using Sample.Core.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace Sample.Core.Services
{
    public class UserRepository : IUserRepository
    {
        public User User { get; set; }

        public UserRepository(IOptionsSnapshot<User> options) {
            this.User = options.Get("UserConfig");
        }

        public User GetUser()
        {
            return this.User;
        }
    }
}
